package cn.edu.hbsi.dao;

import cn.edu.hbsi.domain.IdCard;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

public interface IdCardDao
{
    @Results({
            @Result(id = true,column = "id",property = "id"),
            @Result(column = "code",property = "code")
    })

    //根据id查找身份信息
    @Select("select * from tb_idcard where id=#{id}")
    public IdCard selectIdCardById(Integer id);
}
